-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cherry-picked 2.0.1] Fix path-like object support in FFmpeg dispatcher #3243
Conversation
@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
In dispatcher mode, FFmpeg backend does not handle path-like object, and C++ implementation raises an error. This commit fixes it by normalizing path-like object to string.
d4fee19
to
81e78ba
Compare
@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Hey @mthrok. |
Summary: In dispatcher mode, FFmpeg backend does not handle file-like object, and C++ implementation raises an issue. This commit fixes it by normalizing file-like object to string. Pull Request resolved: pytorch#3243 Reviewed By: nateanl Differential Revision: D44719280 Pulled By: mthrok fbshipit-source-id: 9dae459e2a5fb4992b4ef53fe4829fe8c35b2edd
Follow up of pytorch#3243. Save compat module had different semantics than info and load, which requires different way of performing path normalization.
Follow up of pytorch#3243. Save compat module had different semantics than info and load, which requires different way of performing path normalization.
Summary: Follow up of #3243. Save compat module had different semantics than info and load, which requires different way of performing path normalization. Pull Request resolved: #3248 Reviewed By: hwangjeff Differential Revision: D44774997 Pulled By: mthrok fbshipit-source-id: 4b967ae3ca6b45850d455b8e95aaa31762c5457e
…#3248) Summary: Follow up of pytorch#3243. Save compat module had different semantics than info and load, which requires different way of performing path normalization. Pull Request resolved: pytorch#3248 Reviewed By: hwangjeff Differential Revision: D44774997 Pulled By: mthrok fbshipit-source-id: 4b967ae3ca6b45850d455b8e95aaa31762c5457e
#3248) (#3245) * Fix path-like object support in FFmpeg dispatcher (#3243) Summary: In dispatcher mode, FFmpeg backend does not handle file-like object, and C++ implementation raises an issue. This commit fixes it by normalizing file-like object to string. Pull Request resolved: #3243 Reviewed By: nateanl Differential Revision: D44719280 Pulled By: mthrok fbshipit-source-id: 9dae459e2a5fb4992b4ef53fe4829fe8c35b2edd * Fix path normalization for StreamWriter-based save operation (#3248) Summary: Follow up of #3243. Save compat module had different semantics than info and load, which requires different way of performing path normalization. Pull Request resolved: #3248 Reviewed By: hwangjeff Differential Revision: D44774997 Pulled By: mthrok fbshipit-source-id: 4b967ae3ca6b45850d455b8e95aaa31762c5457e
In dispatcher mode, FFmpeg backend does not handle path-like object,
and C++ implementation raises an error.
This commit fixes it by normalizing path-like object to string.